package com.cskaoyan.market.controller.wx;

import com.cskaoyan.market.service.MarketGoodsService;
import com.cskaoyan.market.util.ResponseUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName WxGoodsController
 * @Description: TODO
 * @Author 远志 zhangsong@cskaoyan.onaliyun.com
 * @Date 2023/4/1 10:19
 * @Version V1.0
 **/
@RestController
@RequestMapping("wx/goods/")
public class WxGoodsController {

    @Autowired
    MarketGoodsService goodsService;

    @GetMapping("count")
    public Object count(){
       int count = goodsService.countOfSale();
       return ResponseUtil.ok(count);
    }
}
